package com.base.service.impl;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.SelfShopWithdrawalsMapper;
import com.base.po.voip.SelfShopWithdrawals;
import com.base.po.voip.SelfShopWithdrawalsExample;
import com.base.service.SelfShopWithdrawalsService;
import com.base.utils.Page;

@Service("selfShopWithdrawalsService")
public class SelfShopWithdrawalsServiceImpl implements SelfShopWithdrawalsService{
	
	@Autowired
	private SelfShopWithdrawalsMapper selfShopWithdrawalsMapper;

	@Override
	public int countByExample(SelfShopWithdrawalsExample example) {
		
		return selfShopWithdrawalsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SelfShopWithdrawalsExample example) {
		
		return selfShopWithdrawalsMapper.deleteByExample(example);
	}

	@Override
	public int insert(SelfShopWithdrawals record) {
		
		return selfShopWithdrawalsMapper.insert(record);
	}

	@Override
	public int insertSelective(SelfShopWithdrawals record) {
		
		return selfShopWithdrawalsMapper.insertSelective(record);
	}

	@Override
	public List<SelfShopWithdrawals> selectByExample(SelfShopWithdrawalsExample example) {
		
		return selfShopWithdrawalsMapper.selectByExample(example);
	}

	@Override
	public List<SelfShopWithdrawals> selectWithdrawals(String parentid, String shopid) {
		
		return selfShopWithdrawalsMapper.selectWithdrawals(parentid, shopid);
	}

	@Override
	public SelfShopWithdrawals selectByPrimaryKey(String id) {
		
		return selfShopWithdrawalsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SelfShopWithdrawals record, SelfShopWithdrawalsExample example) {
		
		return selfShopWithdrawalsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SelfShopWithdrawals record, SelfShopWithdrawalsExample example) {
		
		return selfShopWithdrawalsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SelfShopWithdrawals record) {
		
		return selfShopWithdrawalsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<SelfShopWithdrawals> selectByAll(Page page, String parentid, String shopid, String shopname,
			String name, String accountnum, Byte status) {
		
		return selfShopWithdrawalsMapper.selectByAll(page, parentid, shopid, shopname, name, accountnum, status);
	}

	@Override
	public int countByAll(String parentid, String shopid, String shopname, String name, String accountnum,
			Byte status) {
		
		return selfShopWithdrawalsMapper.countByAll(parentid, shopid, shopname, name, accountnum, status);
	}

	@Override
	public BigDecimal sumAllCash(String parentid, String shopid) {
		return selfShopWithdrawalsMapper.sumAllCash(parentid, shopid);
	}


}
